#!/bin/sh
v=${1:-'2'}

basepath=/export/guojiangtao/dataset
echo "basepath路径: ${basepath}"

dataset=CCIRCup
echo "数据集: ${dataset}"

trainfile=CCIRCup.train.bmes
devfile=CCIRCup.dev.bmes
testfile=CCIRCup.test.bmes
echo "训练数据文件: ${trainfile},验证数据文件: ${devfile},测试数据文件: ${testfile}"

curPath=$(readlink -f "$(dirname "$0")")
echo $curPath

Param="--status train --train ${basepath}/${dataset}/${trainfile} --dev ${basepath}/${dataset}/${devfile} --test ${basepath}/${dataset}/${testfile} "
Param2="--modelname ${dataset} --savedset ${curPath}/savedset/${dataset} --batch_size 4 --num_iter ${v}"
echo $Param$Param2
echo "进行${dataset}数据集训练..."
python main.py $Param$Param2
echo 训练结束

Param="--status test --train ${basepath}/${dataset}/${trainfile} --dev ${basepath}/${dataset}/${devfile} --test ${basepath}/${dataset}/${testfile} "
Param2="--modelname ${dataset} --savedset ${curPath}/savedset/${dataset} --output ${dataset}decode.txt --batch_size 4 --num_iter ${v}"
echo $Param$Param2
echo "进行${dataset}数据集测试和解码..."
python main.py $Param$Param2
echo 测试、解码结束

python /export/guojiangtao/pyworkplace/sendMailByQQ.py --text "方法：Lexicon 数据集: ${dataset} num_iter ${v} use_bert false"




